import service from '@/utils/request'

// @Tags InterviewSearch
// @Summary 创建interviewSearch表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewSearch true "创建interviewSearch表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /interviewSearchs/createInterviewSearch [post]
export const createInterviewSearch = (data) => {
    return service({
        url: '/interviewSearchs/createInterviewSearch',
        method: 'post',
        data
    })
}

// @Tags InterviewSearch
// @Summary 删除interviewSearch表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewSearch true "删除interviewSearch表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /interviewSearchs/deleteInterviewSearch [delete]
export const deleteInterviewSearch = (data) => {
    return service({
        url: '/interviewSearchs/deleteInterviewSearch',
        method: 'delete',
        data
    })
}

// @Tags InterviewSearch
// @Summary 批量删除interviewSearch表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除interviewSearch表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /interviewSearchs/deleteInterviewSearch [delete]
export const deleteInterviewSearchByIds = (data) => {
    return service({
        url: '/interviewSearchs/deleteInterviewSearchByIds',
        method: 'delete',
        data
    })
}

// @Tags InterviewSearch
// @Summary 更新interviewSearch表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewSearch true "更新interviewSearch表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /interviewSearchs/updateInterviewSearch [put]
export const updateInterviewSearch = (data) => {
    return service({
        url: '/interviewSearchs/updateInterviewSearch',
        method: 'put',
        data
    })
}

// @Tags InterviewSearch
// @Summary 用id查询interviewSearch表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.InterviewSearch true "用id查询interviewSearch表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /interviewSearchs/findInterviewSearch [get]
export const findInterviewSearch = (params) => {
    return service({
        url: '/interviewSearchs/findInterviewSearch',
        method: 'get',
        params
    })
}

// @Tags InterviewSearch
// @Summary 分页获取interviewSearch表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取interviewSearch表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /interviewSearchs/getInterviewSearchList [get]
export const getInterviewSearchList = (params) => {
    return service({
        url: '/interviewSearchs/getInterviewSearchList',
        method: 'get',
        params
    })
}
